//
//  SWMessageController.swift
//  STslender
//
//  Created by mac on 15/12/5.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit


class SWMessageController: SWVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
//       view.backgroundColor = UIColor.orangeColor()
        if unlogin {
            visitorView?.setshowVisitorMessage("visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            return
        }
        
        setupUI()
      
    }
    
    private func setupUI(){
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "发现群", target: self, action: "discoverGroup")
    }
    
    @objc private func discoverGroup(){
        print("discoverGroup")
        
        let vc = SWTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }



}
